<a href='https://github.com/angular/angular.js/edit/v1.6.x/docs/content/error/$compile/multilink.ngdoc?message=docs(error%2Fmultilink)%3A%20describe%20your%20change...' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this Doc</a>


<h1>Error: $compile:multilink
  <div><span class='hint'>Linking Element Multiple Times</span></div>
</h1>

<div>
    <pre class="minerr-errmsg" error-display="This element has already been linked.">This element has already been linked.</pre>
</div>

<h2>Description</h2>
<div class="description">
  <p>This error occurs when a single element is linked more then once.</p>
<p>For example, if an element is compiled and linked twice without cloning:</p>
<pre><code>var linker = $compile(template);
linker($scope); //=&gt; ok
linker($scope); //=&gt; multilink error
</code></pre>
<p>Linking an element as a clone multiple times is ok:</p>
<pre><code>var linker = $compile(template);
linker($scope, function() { ... });     //=&gt; ok
linker($scope, function() { ... });     //=&gt; ok
</code></pre>
<p>However once an element has been linked it can not be re-linked as a clone:</p>
<pre><code>var linker = $compile(template);
linker($scope);                       //=&gt; ok
linker($scope, function() { ... });   //=&gt; multilink error
</code></pre>

</div>


